import { request } from '@umijs/max';
export async function login(form) {
    return request('/user/login', {
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
        },
    })
}
export async function queryCurrentUser() {
    return request('/user/current-user', {
        method: 'GET',
    })
}
export async function queryEnabledUserRoughInfoList(params) {
    return request('/user/query/enabled/rough-info/list', {
        params: params,
        method: 'GET',
    })
}
export async function paginationQueryUser(form) {
    return request('/user/page-query/list', {
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
        },
    })
}
export async function createUser(form) {
    return request('/user/create',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function updateUser(form) {
    return request('/user/update',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function batchDeleteUser(form) {
    return request('/user/batch/delete',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function queryUserDetailInfo(param) {
    return request('/user/query/detail-info?'+param,{
        method: 'GET'
    })
}

